<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<div class="modal fade" id="ocean-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 1000px; height: auto">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">详情</h4>
            </div>
            <div class="modal-body">
                <div class=" form">
                    <form class="cmxform form-horizontal tasi-form">
                        <input type="hidden" id="billboard" name="billboard" value="${entity.id}">
                        <div class="form-group">
                            <label for="billboardCode" class="control-label col-lg-2">广告牌编号 </label>
                            <div class="col-lg-10">
                                <input class="form-control" id="billboardCode" name="billboardCode" type="text" readonly
                                       value="${entity.billboard.code}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="repairMan" class="control-label col-lg-2">维修人 </label>
                            <div class="col-lg-10">
                                <input class="form-control" id="repairMan" name="repairMan" type="text" readonly
                                       value="${entity.repairMan.realName}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="pushedCount" class="control-label col-lg-2">推送次数 </label>
                            <div class="col-lg-10">
                                <input class="form-control" id="pushedCount" name="pushedCount" type="text" readonly
                                       value="${entity.pushedCount}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="lastPushDate" class="control-label col-lg-2">上次推送时间 </label>
                            <div class="col-lg-10">
                                <c:choose>
                                    <c:when test="${entity.lastPushDate != ''}">
                                        <input class="form-control" type="text" id="lastPushDate" name="lastPushDate" readonly
                                               value="<fmt:formatDate value="${entity.lastPushDate}" pattern="yyyy-MM-dd hh:mm:ss"/>">
                                    </c:when>
                                    <c:when test="${entity.lastPushDate == ''}">
                                        <input class="form-control" type="text" id="lastPushDate" name="lastPushDate" readonly value="">
                                    </c:when>
                                </c:choose>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="resultType" class="control-label col-lg-2">处理结果类型 </label>
                            <div class="col-lg-10">
                                <c:choose>
                                    <c:when test="${entity.resultType == 'NORMAL'}">
                                        <input class="form-control" type="text" id="resultType" name="resultType" readonly value="正常">
                                    </c:when>
                                    <c:when test="${entity.resultType == 'REINFORCE'}">
                                        <input class="form-control" type="text" id="resultType" name="resultType" readonly value="加固">
                                    </c:when>
                                    <c:when test="${entity.resultType == '' || entity.resultType == null}">
                                        <input class="form-control" type="text" id="resultType" name="resultType" readonly>
                                    </c:when>
                                </c:choose>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="billboardMalfunction" class="control-label col-lg-2">故障描述 </label>
                            <div class="col-lg-10">
                                <textarea class="form-control" id="billboardMalfunction" name="billboardMalfunction"
                                          type="text" readonly>${entity.billboardMalfunction}
                                </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="resultDescription" class="control-label col-lg-2">处理结果描述 </label>
                            <div class="col-lg-10">
                                <textarea class="form-control" id="resultDescription" name="resultDescription"
                                          type="text" readonly>${entity.resultDescription}
                                </textarea>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>